package com.xdcplus.web.common.enums;

public enum StockSettlementStateEnum {
    SETTLEMENT(1, "已结算"),
    NO_SETTLEMENT(0, "未结算");
    private Integer code;

    private String msg;

    public static String getMsg(Long code) {
        for (StockSettlementStateEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    StockSettlementStateEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
